﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using SZSLSystem.DAL;
using SZSLSystem.Model;

namespace SZSLSystem.BLL
{
    /// <summary>
    /// 业务逻辑层：系统日志
    /// </summary>
    public partial class SystemLog
    {
        private readonly SZSLSystem.DAL.SystemLog dal = new SZSLSystem.DAL.SystemLog();

        public SystemLog()
        { 
        
        }

        #region  Method

        /// <summary>
        /// 返回数据总数(分页用到)
        /// </summary>
        public int GetCount(string strWhere)
        {
            return dal.GetCount(strWhere);
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(SZSLSystem.Model.SystemLog model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public int Delete(int dateNum)
        {

            return dal.Delete(dateNum);
        }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        /// <summary>
        /// 获得查询分页数据
        /// </summary>
        public DataSet GetPageList(int pageSize, int currentPage, string strWhere, string filedOrder)
        {
            return dal.GetPageList(pageSize, currentPage, strWhere, filedOrder);
        }

        #endregion  Method
    }
}
